//
//  XLBeautyView.m
//  XiangLove
//
//  Created by feng song on 2018/1/9.
//  Copyright © 2018年 BAOMIHUA.COM. All rights reserved.
//

#import "XLBeautyView.h"

@implementation XLBeautyView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self setupView];
    }
    return self;
}

-(void)setupView
{
    self.backgroundColor = RGB_HEX(0x0F0E19);
    UIImageView *beautyImg = [[UIImageView alloc] init];
    beautyImg.image = [UIImage imageNamed:@"home_img_girl_d"];
    [self addSubview:beautyImg];
    [beautyImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.centerX.equalTo(self);
        make.size.mas_equalTo(CGSizeMake(72, 72));
    }];
    
    UILabel * beautyTitle = [[UILabel alloc] init];
    beautyTitle.text = @"美女正在路上...";
    beautyTitle.textColor = kWhiteColor;
    beautyTitle.font = kSetFont(12);
    beautyTitle.textAlignment = NSTextAlignmentCenter;
    [self addSubview:beautyTitle];
    [beautyTitle mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.equalTo(beautyImg.mas_bottom).offset(5);
        make.centerX.equalTo(self);
        
    }];
    
    
    
}

@end
